import { ResourceInfo } from "info/ResourceInfo";
//class ResByteManager
    
    export  class ResByteManager
    {
       

        public static addInfo(arg1: ResourceInfo): void
        {
            if (!ResByteManager._byteMap[arg1.name]) 
            {
                ResByteManager._byteMap[arg1.name] = arg1;
            }
            return;
        }

        public static dispose(): void
        {
            var loc2=null;
            var loc1=flash.utils.getTimer();
            var loc3=0;
            var loc4=ResByteManager._byteMap;
            for(loc2 of loc4) 
            {
                if (!(loc2.bytesDisposeTime < loc1)) 
                {
                    continue;
                }
                loc2.clearCacheBytes();
                delete ResByteManager._byteMap[loc2.name];
            }
            return;
        }

        public static /* var */_byteMap: Map<any, any> /* flash.utils.Dictionary */;
    }

            ResByteManager._byteMap = new Map<any, any> /* flash.utils.Dictionary */();
        